#{extends 'mana-main.html' /}
#{set recommendActive :"active" /}
#{set title :"查看推荐" /}

<br>
<br>
<br>
<br>
<br>
<div class="article row">
<div class="row">
<a href="@{Recommends.add}" class="btn btn-small btn-success pull-right">添加轮播</a>
</div>
<br>
#{if productrecommendedList}
<table class="table table-hover table-bordered">
	<tr>
		<th width="33%">标题</th>
		<th width="33%">权重</th>
		<th width="34%">操作</th>
	</tr>
	#{list productrecommendedList, as:'item'}
	<tr>
		<td>${item.name}</td>
		<td>${item.weight}</td>
		<td><a class="btn btn-info" href ="@{Recommends.show(item.id)}">查看</a>
		<a class="btn btn-primary" href ="@{Recommends.modify(item.id)}">修改</a>
		<a class="btn btn-danger" href ="@{Recommends.delete(item.id,type)}">删除</a></td>
	</tr>
	#{/list}
</table>
#{/if}
</div>